//
//  QuickaboutSecuritycodeTableViewCell.m
//  WE
//
//  Created by 要帅气的生活 on 15/11/21.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "QuickaboutSecuritycodeTableViewCell.h"

@implementation QuickaboutSecuritycodeTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _name = [UILabel new];
        [self.contentView addSubview:_name];
        
        _field = [UITextField new];
        [self.contentView addSubview:_field];
        
        _baseview = [BaseView new];
        [self.contentView addSubview:_baseview];
        
        _img = [UIImageView new];
        [_baseview addSubview:_img];
    }
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    return self;
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    _name.frame = CGRectMake(10, self.frame.size.height/3, self.frame.size.width/6, self.frame.size.height/3);
    _name.text = @"验证码:";
    _name.font = [UIFont systemFontOfSize:15];
    
    _field.frame = CGRectMake(self.frame.size.width/6 +20, self.frame.size.height/3, self.frame.size.width/2-20, self.frame.size.height/3);
    _field.placeholder = @"验证码";
     _field.font = [UIFont systemFontOfSize:15];
    
    _baseview.frame = CGRectMake(self.frame.size.width/3*2+10, self.frame.size.height/5, self.frame.size.width/4, self.frame.size.height/5*3);
    _img.frame = CGRectMake(0, 0, _baseview.frame.size.width, _baseview.frame.size.height);
    _img.backgroundColor = [UIColor redColor];
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
